<%@ include file="public/include.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <link rel="stylesheet" type="text/css" href="styles/pub/default.css" >
  <script type="text/javascript" src="scripts/pub/jquery.js"></script>
  <script type="text/javascript" src="scripts/pub/common.js"></script>
  <script type="text/javascript" src="scripts/pub/date.js"></script>
</head>

<body>
<div class="main" style="width:98%;">
	<form action="StatClearSearch.do" method="post">
			<table border="0" cellspacing="0" cellpadding="0" align="center">
			  <caption>
				  展会核销统计
			  </caption>
			    <tr>
			      <td align="center">
			        <table border="0" style="width:75%;">
			          <tr>
			            <td width="22%"></td>
			            <td width="30%"></td>
			            <td width="12%"></td>
			            <td ></td>
			          </tr>
			          <tr height="25">
			            <td align="right">备案号</td>
			            <td><input type="text" name="applyCode" value="${map.capply.applyCode}"></td>
			            <td align="right">展会名</td>
			            <td><input type="text" name="exhName" value="${map.capply.exhName}"></td>
			          </tr>
			          <tr height="25">
			            <td align="right">开展日期范围</td>
			            <td>
			            	<input type="text" name="preContactor" value="${map.capply.preContactor}" class="readonly dateinput" readonly="readonly" onclick="setday(this)">
			            	~
							<input type="text" name="preTelephone" value="${map.capply.preTelephone}" class="readonly dateinput" readonly="readonly" onclick="setday(this)">
			            </td>
			            <td align="right">报检单位</td>
			            <td><mytag:select type="ent" name="entUserId" selectedCode="${map.capply.entUserId}"/></td>
			          </tr>
			          <tr class="button">
			            <td colspan="4">
			            	<input type="submit" value=" 查 询 " />&nbsp;
			              	<input type="button" value=" 清空 " onclick="clearInput();" />
			            </td>
			          </tr>
			        </table>
			      </td>
			    </tr>
			  
			  <tr height="30">
			      <td align="center">
			      	<mytag:pagination pager="${map.page}" pageSize="10"  suppressHidden="true"/>
			      </td>
			  </tr>
			  <tbody>
			    <tr>
			      <td align="center">
			        <table class="list" style="width:100%;">
			          <tr class="title">
			            <td  rowspan="2">序号</td>
			            <td  rowspan="2">备案号</td>
			            <td  rowspan="2" width="28%">展会名</td>
			            <td  rowspan="2">报检单位</td>
			            <td  rowspan="2">开展日期</td>
			            <td  rowspan="2">毕展日期</td>
			            <td  rowspan="2">报检批数</td>
			            <td  rowspan="2">货物数</td>
			            <td  colspan="3" scope="col">核销</td>
			          </tr>
			          <tr style="background-color: #C4FFF5;">
					    <td>需核销</td>
					    <td>已核销</td>
					    <td>未核销</td>
					  </tr>
					<c:forEach items="${map.page.items}" varStatus="stat" var="apply">
			          <tr>
			            <td>${stat.count+map.page.seq}</td>
			            <td>${apply.applyCode}</td>
			            <td>${apply.exhName}</td>
			            <td><mytag:c2s key="${apply.entUserId}" type="ent"/></td>
			            <td>${myfunc:d2s(apply.beginDate)}</td>
			            <td>${myfunc:d2s(apply.endDate)}</td>
			            <td>${apply.map['declCount']}</td>
			            <td>${apply.map['goodsCount']}</td>
			            <td>${apply.map['anchorCount']}</td>
			            <td>${apply.map['clearedCount']}</td>
			            <td>${apply.map['clearingCount']}</td>
			          </tr>
					</c:forEach>
			          <tr style="background-color: #C4FFF5;">
			          		<td colspan="6" align="right">合计</td>
			          		<td>${map.stat[0]}</td>
			          		<td>${map.stat[1]}</td>
			          		<td>${map.stat[2]}</td>
			          		<td>${map.stat[3]}</td>
			          		<td>${map.stat[4]}</td>
			          </tr>
			        </table>
			      </td>
			    </tr>
			  </tbody>
			    <tr height="30">
			      <td align="center">
			      	<mytag:pagination pager="${map.page}" pageSize="10"  suppressHidden="false"/>
			      </td>
			    </tr>
			</table>
        	<security:authorize ifAnyGranted="ROLE_APPLY_CENSOR">
        		<input type="hidden" name="deleteApplyId" id="deleteApplyId">
        	</security:authorize>
	</form>
</div>
</body>
</html>
